package com.bestcem.xm.ticket.enums;

import lombok.Getter;
import lombok.ToString;

/**
 * TicketRecordEvent 枚举
 *
 * @author XiaoYunSong <ys.xiao@idiaoyan.com>
 * @version v1.0
 * @date 2021/8/10 20:55
 */
@Getter
@ToString
public enum  TicketRecordEventEnum {
    /**
     * CREATED
     */
    CREATED("工单创建", 0),
    /**
     * CLOSED
     */
    CLOSED("工单关闭", 1),
    /**
     * FOLLOW_OVERDUE
     */
    FOLLOW_OVERDUE("工单跟进超时", 2),
    /**
     * AUDIT_OVERDUE
     */
    AUDIT_OVERDUE("工单审核超时", 3),
    /**
     * FOLLOWED
     */
    FOLLOWED("工单跟进", 4),
    /**
     * AUDITED
     */
    AUDITED("工单审核", 5),
    /**
     * TRANSFER
     */
    TRANSFER("工单跟进转派", 6),
    /**
     * NOTIFY
     */
    NOTIFY("工单通知", 7),
    /**
     * 工单处理完成
     */
    FINISH("工单处理完成", 8),
    /**
     * 工单处理失败
     */
    FAILED("工单处理失败", 9),

    /**
     * 工单转派
     */
    NEW_TRANSFER("工单转派", 10),

    /**
     * 重新打开工单
     */
    REOPEN("重新打开工单", 11);


    private final String name;

    private final Integer index;

    TicketRecordEventEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }
}
